﻿using Llaans.Web.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LPage.Data
{
    public class CreatePage
    {
        public int Id { get; set; }

        [Required]
        [StringLength(50, MinimumLength=3, ErrorMessage="Името на страницата трябва да е минимум 3 и максимум 50 символа")]
        [Display(Name="Име на страницата")]
        public string Name { get; set; }
        [Required]
        
        public string Category { get; set; }

        public DateTime CreationTime { get; set; }

        public ICollection<PagePost> Post { get; set; }

        public ExternalLoginConfirmationViewModel Author { get; set; }
    }
}
